<%@ tag language="java" pageEncoding="utf-8" %>
<%@ attribute name="doc" type="com.eischet.lookup.web.SearchResult" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="lookup" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<div class="head">
    Incident Work Log <%= doc.get("id") %> on Incident <%=doc.getLink("incident_number")%>
    <lookup:dump searchResult="${doc}" link="true" />
</div>
<div class="middle">
    <lookup:display doc="${doc}" field="short_description" optional="false" caption="Short Description" newline="true" highlight="true" />
    <lookup:display doc="${doc}" field="description" optional="true" caption="Description" newline="true" highlight="true" />
    <lookup:display doc="${doc}" field="detailed_description" caption="Detailed Description" optional="true" newline="true" highlight="true" />
    <lookup:display doc="${doc}" field="resolution" optional="true" caption="Resolution" newline="true" highlight="true" />
    <lookup:display doc="${doc}" field="attachment" caption="Attachment" optional="true" newline="true" highlight="true" />
    <lookup:dump searchResult="${doc}" link="false" />
</div>
<div class="foot">
    <lookup:timestamp doc="${doc}" title="Last Modified" tsfield="last_modified_date" byfield="last_modified_by" bytitle="by" />
</div>
